package shop.ynubeggar.service;

import com.baomidou.mybatisplus.extension.service.IService;
import shop.ynubeggar.model.dataobject.AddressDO;
import shop.ynubeggar.model.valueobject.AddressVO;
import shop.ynubeggar.request.AddressRequest;

import java.util.List;

public interface AddressService extends IService<AddressDO> {

    AddressVO queryDetail(long id);

    void createAddress(AddressRequest addressRequest);

    void delAddress(long addressId);

    List<AddressVO> findAllAddress();

    void updateAddress(long addressId, AddressRequest addressRequest);
}
